﻿using System;
using System.Text;
using CodeLibrary.NativeMethods.Utils;

namespace CodeLibrary.System.Utils
{
    public static class WindowUtils
    {
        public static IntPtr FindWindowEx(
            IntPtr hwndParent, IntPtr hwndChildAfter,
            string lpszClass, string lpszWindow)
        {
            return User32Utils.FindWindowEx(
                hwndParent, hwndChildAfter, lpszClass, lpszWindow);
        }

        public static int GetWindowText(
            IntPtr hWnd, StringBuilder lpString, int nMaxCount)
        {
            return User32Utils.GetWindowText(hWnd, lpString, nMaxCount);
        }

        public static string GetWindowTextRaw(IntPtr hwnd)
        {
            return User32Utils.GetWindowTextRaw(hwnd);
        }
    }
}
